#include ".\reportdata.h"


void ReportContent::Fill(const string& reference, 
						const string& description,
						const string& condition,
				        bool  stat)
{
	this->_Reference   = reference;
	this->_Description = description;
	size_t pos = condition.find("==");
	if (pos != string::npos)
	{
		this->_Input = condition.substr(0, pos);
		this->_Expected = condition.substr(pos + 2, condition.length());
	}
	this->_Stat	= stat ? "OK" : "Fail";
}